package com.mjh.partners.service.Impl;

import com.mjh.partners.mapper.PraiseMapper;
import com.mjh.partners.pojo.Praise;
import com.mjh.partners.service.PraiseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;



@Service
@Transactional
public class PraiseServiceImpl implements PraiseService {
  @Autowired
  private PraiseMapper praiseMapper;
  @Override
  public Praise getPraise(int eid, int userid) {
    return this.praiseMapper.getPraise(eid,userid);
  }
  @Override
  public boolean addPraise(Praise praise) {
    return this.praiseMapper.addPraise(praise);
  }
  @Override
  public boolean deletePraise(int eid, int userid) {
    return this.praiseMapper.deletePraise(eid, userid);
  }
  @Override
  public boolean deleteByEx(int eid) {
    return this.praiseMapper.deleteByEx(eid);
  }

}
